//
//  MusicType.m
//  NewMusic
//
//  Created by dllo on 15/11/23.
//  Copyright © 2015年 Going. All rights reserved.
//

#import "MusicType.h"

@implementation MusicType
- (void)dealloc
{
    [_url release];
    [_typeDescription release];
    [super dealloc];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if (value == nil)
    {
        value = @"nil";
    }
}
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.url forKey:@"url"];
    [aCoder encodeObject:self.typeDescription forKey:@"typeDescription"];
}
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self)
    {
        self.url = [aDecoder decodeObjectForKey:@"url"];
        self.typeDescription = [aDecoder decodeObjectForKey:@"typeDescription"];
    }
    return self;
}

@end
